package com.smartfactory.sail.entity.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * @author 王巨壁
 * @title: CustStatusEnum
 * @projectName smart-sail
 * @description: 合同订单类型1生产2修磨3混合
 * @date 2019/7/311:57
 */
public enum ContractOrderTypeEnum implements IEnum {
    SC(1,"生产"),
    XM(2,"修磨"),
    HH(3,"混合"),
    ;

    ContractOrderTypeEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }


    private final int code;
    private final String descp;

    public int getCode() {
        return code;
    }
    @JsonValue
    public String getDescp() {
        return descp;
    }

    @Override
    public Serializable getValue() {
        return code;
    }
}
